// 文件模块
import { request } from "@/utils/request";
import { myRequest } from "../utils/request.js";
import { uploadPic } from "../utils/uploadPic.js";
export function filetext(data) {
  // 测试
  return request("/test", data, "post");
}
// export function getTestDDL(data){
// 	return myRequest("/test/getTestDDL",data,"get");
// }
export function getTestDDL(data){
	return myRequest("/test/getTestDDL",data,"get");
}
export function getQuestions(data){
	return myRequest("/test/getQuestions",data,"post");
}
export function putupPaper(data){
	return myRequest("/test/subPaperAnswer",data,"post");
}
export function filetestRoom(data) {
  // 测试
	return myRequest("/test/testMsg", data, "get");
}
export function studentLogin(data) {
	// 页面登录
	return myRequest("/login/student", data, "post");
}

export function loginRequest(data) {
  // 登录
  return myRequest("/test/studentLogin", data, "get");
}
export function getTestInformations(data) {
  //得到考试的相关信息
  return myRequest("/test/getTestList", data, "get");
}
export function addTest(data) {
  //得到考试的相关信息
  return myRequest("/test/addTest", data, "get");

}
//获取考试列表
export function getTestList(data){
	return myRequest("/test/getTestList",data,"get");
}
//获取考试名考试列表
export function getTestListByName(data){
	return myRequest("/test/searchTest",data,"get");
}
//拍照上传答案
export function upload(data){
	return uploadPic("/test/upload",data,"post");
}
//获取已批改的试卷信息
export function getPaperMsg(data){
	return myRequest("/test/getCorrectedPaperMsg",data,"post");
}